.main-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.header-menu {
  background: #001529;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  
  .logo {
    display: flex;
    align-items: center;
    color: white;
    font-size: 18px;
    padding-right: 60px;
    
    i {
      font-size: 24px;
      margin-right: 12px;
    }
  }

  .menu-list {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    
    li {
      color: white;
      padding: 15px 20px;
      cursor: pointer;
      
      &.active {
        background: #1890ff;
      }
    }
  }

  .user-info {
    color: white;
    display: flex;
    align-items: center;
    
    .welcome {
      i {
        margin-right: 8px;
      }
    }
    
    .divider {
      margin: 0 12px;
      color: rgba(255,255,255,0.3);
    }
    
    .logout {
      cursor: pointer;
      
      i {
        margin-right: 8px;
      }
      
      &:hover {
        color: #1890ff;
      }
    }
  }
}

.content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.side-menu-container {
  position: relative;
  height: 100%;
}

.side-menu {
  width: 200px;
  background: #001529;
  padding: 20px 0;
  overflow-y: auto;
  height: 100%;
  transition: width 0.3s;
  
  &.collapsed {
    width: 0;
    padding: 0;
  }
}

.collapse-trigger {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 50px;
  background: #001529;
  border-radius: 0 4px 4px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  border: none;
  padding: 0;
  z-index: 1000;
  
  i {
    font-size: 12px;
    transition: transform 0.3s;
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  
  &:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}

::-webkit-scrollbar-track {
  background: transparent;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
  
  li {
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    
    &:hover {
      background: rgba(255,255,255,0.1);
    }
    
    &.active {
      background: #1890ff;
    }
  }
}


.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 0;
}

.tabs-header {
  display: flex;
  background: #f0f2f5;
  border-bottom: 1px solid #d9d9d9;
  
  .tab-item {
    padding: 8px 20px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-bottom: none;
    margin: 4px 4px 0;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    
    &.active {
      background: #e6f7ff;
    }
    
    .close-icon {
      margin-left: 8px;
      font-size: 12px;
      
      &:hover {
        color: #ff4d4f;
      }
    }
  }
}

.tab-content {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

.theme-setting {
  cursor: pointer;
  padding: 0 12px;
  
  &:hover {
    color: #1890ff;
  }
}

.theme-settings {
  .setting-block {
    margin-bottom: 24px;

    h4 {
      margin-bottom: 12px;
      color: rgba(0, 0, 0, 0.85);
      font-size: 14px;
    }
  }

  .layout-options {
    display: flex;
    gap: 8px;

    .layout-item {
      flex: 1;
      cursor: pointer;
      border: 1px solid #d9d9d9;
      border-radius: 2px;
      padding: 8px;
      text-align: center;
      
      &.active {
        border-color: #1890ff;
      }

      img {
        width: 100%;
        height: auto;
        margin-bottom: 8px;
      }

      div {
        font-size: 12px;
      }
    }
  }

  .color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    .color-item {
      width: 20px;
      height: 20px;
      border-radius: 2px;
      cursor: pointer;
      position: relative;
      
      &.active::after {
        content: '✓';
        position: absolute;
        color: white;
        font-size: 14px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
      }
    }
  }

  .setting-actions {
    margin-top: 24px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }
}
